package com.qf.hospital.mapper;

import com.qf.hospital.entity.OutPatientType;
import com.qf.hospital.entity.OutPatientTypeExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OutPatientTypeMapper {
    long countByExample(OutPatientTypeExample example);

    int deleteByExample(OutPatientTypeExample example);

    int deleteByPrimaryKey(Integer outPatientId);

    int insert(OutPatientType record);

    int insertSelective(OutPatientType record);

    List<OutPatientType> selectByExample(OutPatientTypeExample example);

    OutPatientType selectByPrimaryKey(Integer outPatientId);

    int updateByExampleSelective(@Param("record") OutPatientType record, @Param("example") OutPatientTypeExample example);

    int updateByExample(@Param("record") OutPatientType record, @Param("example") OutPatientTypeExample example);

    int updateByPrimaryKeySelective(OutPatientType record);

    int updateByPrimaryKey(OutPatientType record);

    /**
     * 查询项目信息
     * @param projectName
     * @return
     */
    List<OutPatientType> findByProjectName(@Param("projectName") String projectName);
}